{{include file='layout/header.tpl'}}

{{include file='form/search.tpl'
  action=$_param.page
  value=$_param.get.s|default
}}

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

<table class="table_edit">
<thead>
<tr>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.id
  name='hito_id'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.key_id
  name='post_id'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.name
  name='name'
  query='s'
}}({{include file='form/list.order.tpl'
  label=$smarty.config.kana
  name='kana'
  query='s'
}})</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.nickname
  name='nickname'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.gender
  name='gender'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.type
  name='type'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.same
  name='same'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.note
  name='note'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.editor_note
  name='editor_note'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.update_date
  name='update_date'
  query='s'
}}</th>
</tr>
</thead>
{{foreach $data.list as $v}}
{{$category_array = $v->_category|pgstr2ary}}
<tr>
<td>{{$v->hito_id}}</td>
<td>{{$v->post_id}}</td>
<td>
<p><a href="{{$_param.page}}/{{$v->post_id}}">{{$v->name}}</a>({{$v->kana}})</p>
<ul class="edit_navi">
<li><a href="{{$_param.url}}hito/{{$v->post_id}}">{{$smarty.config.browse}}</a></li>
<li><a href="{{$_param.page}}/{{$v->post_id}}">{{$smarty.config.base}}</a></li>
<li><a href="{{$_param.page}}/same/{{$v->post_id}}">{{$smarty.config.same}}[{{$v->_same}}]</a></li>
<li><a href="{{$_param.page}}/history/{{$v->post_id}}">{{$smarty.config.edit}}{{$smarty.config.history}}[{{$v->_total}}]</a></li>
</ul>
</td>
<td>{{$v->nickname}}</td>
<td>{{$smarty.config[$v->type|getParameterLabel:$smarty.const.HITO_GENDER_PARAMS:$smarty.const.HITO_GENDER_LABELS]}}</td>
<td>
{{********* unit *******}}{{if $v->type eq 1}}
<a href="{{$_param.page}}/unit/{{$v->post_id}}">{{$smarty.config[$v->type|getParameterLabel:$smarty.const.HITO_TYPE_PARAMS:$smarty.const.HITO_TYPE_LABELS]}}[{{$v->_unit}}]</a>
{{********* other ******}}{{else}}
{{$smarty.config[$v->type|getParameterLabel:$smarty.const.HITO_TYPE_PARAMS:$smarty.const.HITO_TYPE_LABELS]}}
{{/if}}
</td>
<td>d</td>
<td>{{$v->note}}</td>
<td>{{$v->editor_note}}</td>
<td class="small">{{$v->update_date->format('Y-m-d H:i:s')}}</td>
</tr>
{{/foreach}}
</table>

<a href="{{$_param.page}}/0">{{$smarty.config.newpost}}</a><br/>

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

{{include file='layout/footer.tpl'}}